home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5898 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.kreonet.re.kr!usenet
  2. From: jwhahn@cair.kaist.ac.kr (Jung Hahn)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Simulation Problem, Help!!!
  5. Date: Wed, 07 Feb 1996 12:00:10 GMT
  6. Organization: Applied Database Labs, K.A.I.S.T
  7. Message-ID: <311893e4.14225114@news.kreonet.re.kr>
  8. References: <4f9iiq$5nl@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: swine.kaist.ac.kr
  10. X-Newsreader: Forte Agent .99d/32.168
  11.  
  12. On 7 Feb 1996 01:58:34 -0500, mlin01@aol.com (MLin01) wrote:
  13.  
  14. >I need to write a program to do some bond trading simulations.  This
  15. >program works like this:
  16. >
  17. >1. It asks the user about the interest rate constrains.
  18. >2. Based on the constrains and the actual interest rate, the program will
  19. >come up with the gain
  20. >or lost.
  21. >The chanllenges are:
  22. >1. I need to validate user inputs.  This implies the inputs will have the
  23. >correct syntax and semantic for the specific language.
  24. >2. All constrains have to be exclusive and the union of all the constrains
  25. >is a universe.
  26. >3. Translate all the constrains as part of the calculation function at run
  27. >time.
  28. >
  29. >If you have similiar experience, please let me know at mlin01@aol.com.
  30. >Michael
  31.  
  32. Why Don't you go to the library and lookup 
  33.  
  34. "lex & yacc" 
  35.     by John. Levine, Tony Mason & Doug Brown. 
  36.         (O'Reilly & Associates, Inc).
  37.  
  38.  
  39. Parsers generated in Yacc are ganranteed to be much faster than what
  40. you'd ever hand-program. 
  41.  
  42. When using Lex & Yacc the Bugs would be Syntactic/Grammatic whereas in
  43. the case of your hand written code ... who knows ...   
  44.  
  45. It's free ... 
  46.  
  47.    Not the book .... 
  48. ___________
  49.  
  50.     Name:  Jung w. Hahn
  51.     Elm:   jwhahn@cair.kaist.ac.kr
  52.     Phone: 042-869-2959
  53.